package com.wobito.pojo.vo.book;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

/**
 * @Author Wangbaba
 * @Date 2024/8/28 13:43
 * @Version 1.0
 */
@Data
@ApiModel(value = "修改书籍入参")
public class UpdateBookVO {

    @ApiModelProperty(value = "书籍ID",required = true)
    private Long id;

    @ApiModelProperty(value = "柜格ID",required = true)
    private Long latId;

    @ApiModelProperty(value = "书籍名称",required = true)
    @Size(min = 2,max = 30,message = "书籍名称长度必须在2-30位之间")
    private String name;

    @ApiModelProperty(value = "作者",required = true)
    @Size(min = 2,max = 20,message = "作者长度必须在2-20位之间")
    private String author;

    @ApiModelProperty(value = "RFID编号",required = true)
    @Size(max = 50,message = "RFID编号长度不能超过50位")
    private String rfid;

    @ApiModelProperty(value = "备注")
    @Size(max = 100,message = "备注长度不能超过100位")
    private String remark;
}
